package com.zjj.edu.system.mapper;

import com.zjj.edu.system.domain.SysCourseGoods;
import com.zjj.edu.system.domain.SysTeachGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 教学物品Mapper接口
 *
 * @author zjj
 * @date 2020-06-02
 */
public interface SysTeachGoodsMapper
{
    /**
     * 查询教学物品
     *
     * @param id 教学物品ID
     * @return 教学物品
     */
    public SysTeachGoods selectSysTeachGoodsById(Long id);

    /**
     * 查询教学物品列表
     *
     * @param sysTeachGoods 教学物品
     * @return 教学物品集合
     */
    public List<SysTeachGoods> selectSysTeachGoodsList(SysTeachGoods sysTeachGoods);

    /**
     *
     * @param sysTeachGoods
     * @return
     */
    public List<SysTeachGoods> selectSysTeachGoodsListByIds(SysTeachGoods sysTeachGoods);

    /**
     * 新增教学物品
     *
     * @param sysTeachGoods 教学物品
     * @return 结果
     */
    public int insertSysTeachGoods(SysTeachGoods sysTeachGoods);

    /**
     * 修改教学物品
     *
     * @param sysTeachGoods 教学物品
     * @return 结果
     */
    public int updateSysTeachGoods(SysTeachGoods sysTeachGoods);


    /**
     * 批量删除教学物品
     *
     * @param subject 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysTeachGoodsByIds(SysTeachGoods subject);

    /**
     *
     * @param name
     * @param tenantId
     * @return
     */
    SysTeachGoods checkNameUnique(@Param("name") String name, @Param("tenantId") long tenantId);

    /**
     *
     * @param id
     * @return
     */
    List<SysCourseGoods> selectSysCourseGoodsById(Long id);

    /**
     *
     * @param id
     * @return
     */
    int removeCourseGoods(@Param("id") Long id);
}
